package lab02.test36;

public class Test36 {
    public static void main(String[] args) {
        int[] grade = new int[3];


        Undergraduate zhangsan = new Undergraduate();
        zhangsan.setName("张三");
        zhangsan.setSort("本科生");

        grade[0]=90;
        grade[1]=95;
        grade[2]=100;
        System.out.println(zhangsan.getName()+" "+zhangsan.getSort());
        zhangsan.getGradeLevel(grade);

        Undergraduate lisi = new Undergraduate();
        lisi.setName("李四");
        lisi.setSort("本科生");
        grade[0]=80;
        grade[1]=85;
        grade[2]=90;
        System.out.println(lisi.getName()+" "+lisi.getSort());
        lisi.getGradeLevel(grade);

        Postgraduate wangwu = new Postgraduate();
        wangwu.setName("王五");
        wangwu.setSort("研究生");
        grade[0]=82;
        grade[1]=85;
        grade[2]=88;
        System.out.println(wangwu.getName()+" "+wangwu.getSort());
        wangwu.getGradeLevel(grade);

        Undergraduate zhaoliu = new Undergraduate();
        zhaoliu.setName("赵六");
        zhaoliu.setSort("本科生");
        grade[0]=75;
        grade[1]=82;
        grade[2]=87;
        System.out.println(zhaoliu.getName()+" "+zhaoliu.getSort());
        zhaoliu.getGradeLevel(grade);

        Postgraduate chenqi = new Postgraduate();
        chenqi.setName("陈七");
        chenqi.setSort("本科生");
        grade[0]=80;
        grade[1]=82;
        grade[2]=84;
        System.out.println(chenqi.getName()+" "+chenqi.getSort());
        chenqi.getGradeLevel(grade);
    }
}
